package com.zn.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 行情交易明细
 */
public class MarketTradeDetail {
    /**合约code**/
    private String code;
    /**最新价**/
    private String lastPrice;
    /**数据行情时间**/
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date marketTime;
    /**成交量**/
    private String volume;
    /**创建时间**/
    private String createTime;
    /**现手(当前成交量=成交量-上一个tick的成交量)**/
    private String curTradeVolume;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getLastPrice() {
        return lastPrice;
    }

    public void setLastPrice(String lastPrice) {
        this.lastPrice = lastPrice;
    }

    public Date getMarketTime() {
        return marketTime;
    }

    public void setMarketTime(Date marketTime) {
        this.marketTime = marketTime;
    }

    public String getVolume() {
        return volume;
    }

    public void setVolume(String volume) {
        this.volume = volume;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCurTradeVolume() {
        return curTradeVolume;
    }

    public void setCurTradeVolume(String curTradeVolume) {
        this.curTradeVolume = curTradeVolume;
    }
}
